package stack;

import java.util.Stack;

// import java.util.*;
public class Ex155 {

   static class MinStack {

        private Stack<Integer> man;
        private Stack<Integer> help;
        /** initialize your data structure here. */
        public MinStack() {
            this.man = new Stack<>();
            this.help = new Stack<>();
        }
        
  /*       public void push(int val) {
            this.man.push(val);
            if (help.isEmpty() || help.peek() > val) {
                help.push(val);
            }
        }
        
        public void pop() {
            if (man.isEmpty()) return;
            else {
                int t = man.pop();
                if (!help.isEmpty() && t == help.peek()) {
                    help.pop();
                }
            }
        }
        
        public int top() {
            if (man.isEmpty()) return -1;
            return man.peek();
        }
        
        public int getMin() {
            return help.pop();
        }
        public static void main(String[] args) {
            
        }
    } */
    

    public static void main(String[] args) {
    
    }
    /**
     * Your MinStack object will be instantiated and called as such:
     * MinStack obj = new MinStack();
     * obj.push(val);
     * obj.pop();
     * int param_3 = obj.top();
     * int param_4 = obj.getMin();
     */
    
}
}